
{% extends 'base_main.html' %}

{% block head %}
    {{ block.super}}
{% endblock %}
{% block css %}
    {{ block.super}}
{% endblock %}
{% block js %}
    <script src="/static/js/modernizr.js"></script>
    <script src="/static/js/jquery.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="/static/js/comm.js"></script>
    <script src="/static/js/scrollReveal.js"></script>
{% endblock %}
{% block content1 %}
    {{ block.super}}
{% endblock %}
{% block content %}
<article>
  <div class="picbox">
      <ul>
          {% for article in ddf%}
      <li data-scroll-reveal="enter bottom over 1s" ><a href="/"><i><img src="/static/images/{{ forloop.counter }}.jpg"></i>
        <div class="picinfo">
          <h3>{{ article.title }}</h3>
          <span>{{ article.describe }}</span> </div>
        </a></li>
          {% endfor %}
    </ul>
  </div>
  <div class="pagelist">
      {% if ddf.has_previous %}
      <a class="allpage" href="{% url 'ddf:share' %}?page={{ ddf.previous_page_number }}"><b><span>&laquo;上一页</span></b></a>
      {% endif %}
      {% for i in ddf.paginator.page_range %}
      <a href="{% url 'ddf:share' %}?page={{ i }}"  class="curPage">{{ i }}</a>
      {% endfor %}&nbsp;&nbsp;
      {% if ddf.has_next %}
      <a href="{% url 'ddf:share' %}?page={{ ddf.next_page_number }}" ><span>&raquo;下一页</span></a>
      {% endif %}
  </div>
</article>
<footer>
  <p>Design by <a href="https://ddf118.github.io/" target="_blank">DDF个人博客</a> <a href="/">蜀ICP备11002373号-1</a></p>
</footer>
<a href="#" class="cd-top">Top</a>
{% endblock %}